package com.example.demo.commons.result.common.enums;


import com.example.demo.commons.result.able.ErrorCodeInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p> 基础错误枚举 </p>
 *
 * @author tanyunpeng
 * @date 2021/11/18
 */
@Getter
@AllArgsConstructor
public enum BaseErrorCodeEnum implements ErrorCodeInterface<BaseErrorCodeEnum> {
    //自定义异常
    UNKNOWN_ERROR("9999", "未知错误"),


    INTERNAL_SERVER_ERROR("1000", "服务器内部异常"),
    SYSTEM_BUSY("1001", "系统繁忙，请稍候再试"),
    PARAMS_ERROR("1002", "参数错误"),
    FALLBACK("1003", "远程调用失败"),

    UNAUTHORIZED("1100", "访问被拒绝"),
    RELOGIN("1101", "重新登录"),

    //
    ;

    private String code;
    private String desc;
}
